package com.bootdo.project.service.impl;

import com.bootdo.project.domain.TAgentCommission;
import com.bootdo.project.dao.TAgentCommissionMapper;
import com.codegen.vo.Page;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.beans.factory.annotation.Autowired;

import org.apache.ibatis.annotations.Param;

/**
 *
 * Created by xxxx on 2019/03/19.
 */
@Service
public class TAgentCommissionService {

	@Autowired
    private TAgentCommissionMapper tAgentCommissionMapper;
    
    public int deleteByPrimaryKey(Long id){
        return tAgentCommissionMapper.deleteByPrimaryKey(id);
    }

    public int insert(TAgentCommission record){
        return tAgentCommissionMapper.insert(record);
    }

    public int insertSelective(TAgentCommission record){
        return tAgentCommissionMapper.insertSelective(record);
    }

    public TAgentCommission selectByPrimaryKey(Long id){
        return tAgentCommissionMapper.selectByPrimaryKey(id);
    }

    public int updateByPrimaryKeySelective(TAgentCommission record){
        return tAgentCommissionMapper.updateByPrimaryKeySelective(record);
    }

    public int updateByPrimaryKey(TAgentCommission record){
        return tAgentCommissionMapper.updateByPrimaryKey(record);
    }

    public List<TAgentCommission> selectByCondition(TAgentCommission record){
        return tAgentCommissionMapper.selectByCondition(record);
    }

    public List<TAgentCommission> selectAll(){
        return tAgentCommissionMapper.selectAll();
    }

    public List<TAgentCommission> selectByPage(Page<TAgentCommission> page){
        return tAgentCommissionMapper.selectByPage(page);
    }

    public Integer count(TAgentCommission record){
        return tAgentCommissionMapper.count(record);
    }

    public int deleteByCondition(TAgentCommission record){
        return tAgentCommissionMapper.deleteByCondition(record);
    }

}
